package com.asen.commons.core.base.domain;

import com.asen.commons.annotation.FieldIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 从属实体基类
 *
 * @author ls
 * @version 1.0
 * @date 2024-04-09
 */
@Data
@NoArgsConstructor
public abstract class SubBase<T extends CoreBase> extends CoreBase {

    public SubBase(Long id) {
        super(id);
    }

    @FieldIgnore(selectOnly = true)
    @ApiModelProperty(value = "父单据", position = 996)
    private T parent;

    @ApiModelProperty(value = "父单据ID", position = 997)
    private Long parentId;

}
